package com.heima.model.behavior.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class LikesBehaviorDTO {
    // 设备ID
    Integer equipmentId;
    // 文章ID
    @NotNull(message = "文章、动态、评论等ID不能为空！")
    Long articleId;
    /**
     * 喜欢操作方式
     * 0 点赞
     * 1 取消点赞
     */
    @NotNull(message = "操作方式不能为空")
    @Range(min = 0, max = 1,message = "喜欢操作方式参数有误！")
    Short operation;
}